.payment-success {
  height: calc(100vh - env(safe-area-inset-bottom));
  background-color: #f2f5f7;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 40rpx;
  box-sizing: border-box;

  .payment-success-title {
    display: flex;
    align-items: center;
    margin-top: 60rpx;
    gap: 20rpx; // 图标与文字间距

    .payment-success-title-image {
      width: 60rpx;
      height: 60rpx;
    }

    .payment-success-title-text {
      font-size: 40rpx;
      font-weight: 600;
      color: #333;
    }
  }

  .payment-success-qr-code {
    width: 260rpx;
    height: 260rpx;
    margin-top: 70rpx;
    background-color: #fff;
    padding: 20rpx;
    border-radius: 12rpx;
    box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.08);
  }

  .payment-success-tip {
    margin-top: 30rpx;
    font-size: 30rpx;
    color: #666;
    text-align: center;
    line-height: 1.5;
  }

  .payment-success-buttons {
    display: flex;
    gap: 30rpx;
    margin-top: 80rpx;
    width: 100%;
    max-width: 600rpx;

    .payment-success-buttons-check-order,
    .payment-success-buttons-go-back-mall {
      flex: 1;
      height: 88rpx;
      line-height: 88rpx;
      text-align: center;
      border-radius: 44rpx;
      font-size: 32rpx;
      font-weight: 500;
      transition: all 0.3s ease;
    }

    .payment-success-buttons-check-order {
      background-color: #007aff;
      color: #fff;

      &:active {
        background-color: #0066cc;
      }
    }

    .payment-success-buttons-go-back-mall {
      background-color: #fff;
      color: #007aff;
      border: 2rpx solid #007aff;

      &:active {
        background-color: #f0f8ff;
      }
    }
  }

  // 适配小屏设备
  @media (max-height: 600px) {
    .payment-success-title {
      margin-top: 40rpx;
    }

    .payment-success-qr-code {
      margin-top: 50rpx;
      width: 220rpx;
      height: 220rpx;
    }

    .payment-success-buttons {
      margin-top: 60rpx;
    }
  }

  // 深色模式适配
  @media (prefers-color-scheme: dark) {
    background-color: #1c1c1e;

    .payment-success-title-text {
      color: #fff;
    }

    .payment-success-tip {
      color: #aaa;
    }

    .payment-success-qr-code {
      background-color: #2c2c2e;
    }

    .payment-success-buttons-go-back-mall {
      background-color: #2c2c2e;
      border-color: #0a84ff;
    }
  }
}